#ifndef PARSERAPI_H
#define PARSERAPI_H

#include <QtCore>
#include <QStringList>
#include "Constants.h"

class ConfigParser
{
public:
    ConfigParser();

public:
    void msgParse(QString Msg);
    QString getMsgType(){return *MsgType;}
    QString getBotType(){return *BotType;}
    QString getID(){return *ID;}
    QStringList getSensors(){return *Sensors;}
    QString getSocketID(){return *socketID;}

    void setSocketID(QString socket){ *socketID = socket;}


private:
    QString* MsgType;
    QString* BotType;
    QString* ID;
    QStringList* Sensors;
    QString* socketID;

};

class SensorParser
{
public:
    SensorParser();

public:
    void msgParse(QString Msg);
    QString getMsgType(){return *MsgType;}
    QStringList getSensorsData(){return *SensorData;}

private:
    QString* MsgType;
    QStringList* SensorData;

};

class AckParser
{
public:
    AckParser();

public:
    void msgParse(QString Msg);
    QString getMsgType(){return *MsgType;}

private:
    QString* MsgType;

};

#endif // PARSERAPI_H
